﻿using Autofac;
using Zinnia.Kernel.Core;
using Zinnia.Kernel.Inject.Core;

namespace Zinnia.Encrypt
{
    /// <summary>
    /// 加密算法依赖注入器
    /// </summary>
    public class EncryptDependcyInjectRegister : IDependencyInjectRegister
    {
        public void Register(ContainerBuilder builder)
        {
            builder.RegisterInstance(new DesEncryptService()).As<IEncryptService>().SingleInstance();
        }
    }
}
